<%= render 'common/notice' %>

<div class="panel-no-border panel-primary">
  <!-- Default panel contents -->
  <div class="panel-heading">
    <div class="row">
    <div class="col-xs-12 text-left"><strong><%= @article.title %></strong></div>
    </div>
  </div>
  <div class="panel-body">

    <div class="text-left content"><%= @article.content.html_safe %></div>

    <!--文章信息-->
    <!--<div class="text-left">阅读: <%= @article.click %></div>-->

    <div class="row">
      <div class="col-xs-12 text-right"><%= link_to "返回主题>", topic_path(@article.topic) %></div>
    </div>

    <br/>
    <%- _previous = @article.previous %>
    <%- _next = @article.next %>
    <div>上一篇:
    <%- if _previous %>
          <%= link_to _previous.title, article_path(_previous), class: 'mgl5' %>
          <%- else %>
      <span class="font12 mgl5">无</span>
    <% end %>
    </div>

    <div>下一篇:
      <%- if _next %>
          <%= link_to _next.title, article_path(_next), class: 'mgl5' %>
      <%- else %>
          <span class="font12 mgl5">无</span>
      <% end %>
    </div>
  </div>
</div>
<script language="JavaScript"> prettyPrint(); </script>